package com.yanqu.road.entity.activity.specialcookboy.config;

import com.yanqu.road.entity.activity.ActivityConfig;

import java.util.List;
import java.util.Map;

public class SpecialCookBoyConfig {

    private int useShareCodeMaxGetItem;                     //每天可以用多少分享码
    private int codeBeUsedMaxGetItem;                       //每个分享码可以被用多少次
    private String useCodeReward;

    private String mailContain;
    private String mailTitle;
    private int tipItemId;

    //小当家特色服关卡配置
    private Map<Integer,SpecialCookBoyLevelConfig> levelConfigMap;
    //小当家特色服物品配置
    private List<SpecialCookBoyItemConfig> itemConfigList;
    //小当家特色服事件配置
    private List<SpecialCookBoyEventConfig> eventConfigList;
    //小当家特色服提示配置
    private Map<Integer,SpecialCookBoyPromptConfig> promptConfigMap;
    //小当家特色服贸易关卡替换配置
    private final Map<Integer,SpecialCookBoyChoosePassRoadEventConfig> passRoadEventConfigMap;
    //小当家特色服活动提示详细配置
    private final List<SpecialCookBoyTipConfig> tipDetailConfigList;
    //小当家引导配置
    private final List<SpecialCookBoyGuideConfig> guideConfigList;


    public SpecialCookBoyConfig(Map<Integer, SpecialCookBoyLevelConfig> levelConfigMap
            , List<SpecialCookBoyItemConfig> itemConfigList
            , List<SpecialCookBoyEventConfig> eventConfigList
            , Map<Integer,SpecialCookBoyPromptConfig> tmpPromptConfigMap
            ,Map<Integer, SpecialCookBoyChoosePassRoadEventConfig> tmpPassRoadEventConfigMap
            ,List<SpecialCookBoyTipConfig> tmpTipDetailConfigList
            ,List<SpecialCookBoyGuideConfig> tmpGuideConfigList
            ,Map<String, ActivityConfig> configMap) {
        this.levelConfigMap = levelConfigMap;
        this.itemConfigList = itemConfigList;
        this.eventConfigList = eventConfigList;
        this.promptConfigMap = tmpPromptConfigMap;
        this.passRoadEventConfigMap = tmpPassRoadEventConfigMap;
        this.tipDetailConfigList = tmpTipDetailConfigList;
        this.guideConfigList = tmpGuideConfigList;

        useCodeReward = configMap.get("CHINESECHEF_SECRET_ORDER_USED_REWARD").getValue();
        useShareCodeMaxGetItem = configMap.get("CHINESECHEF_SECRET_ORDER_USE_NUMBER_MAX").getIntValue();
        codeBeUsedMaxGetItem = configMap.get("CHINESECHEF_SECRET_ORDER_SHARE_NUMBER_MAX").getIntValue();

        mailContain = configMap.get("CHINESECHEF_SECRET_REWARD_USED_REWARD_CONTENT").getValue();
        mailTitle = configMap.get("CHINESECHEF_SECRET_REWARD_USED_REWARD_TITLE").getValue();
        tipItemId = configMap.get("CHINESECHEF_SECRET_REWARD_ITEM_PREVIEW").getIntValue();

    }


    public String getUseCodeReward() {
        return useCodeReward;
    }

    public void setUseCodeReward(String useCodeReward) {
        this.useCodeReward = useCodeReward;
    }

    public int getUseShareCodeMaxGetItem() {
        return useShareCodeMaxGetItem;
    }

    public void setUseShareCodeMaxGetItem(int useShareCodeMaxGetItem) {
        this.useShareCodeMaxGetItem = useShareCodeMaxGetItem;
    }

    public int getCodeBeUsedMaxGetItem() {
        return codeBeUsedMaxGetItem;
    }

    public void setCodeBeUsedMaxGetItem(int codeBeUsedMaxGetItem) {
        this.codeBeUsedMaxGetItem = codeBeUsedMaxGetItem;
    }

    public Map<Integer, SpecialCookBoyLevelConfig> getLevelConfigMap() {
        return levelConfigMap;
    }

    public void setLevelConfigMap(Map<Integer, SpecialCookBoyLevelConfig> levelConfigMap) {
        this.levelConfigMap = levelConfigMap;
    }

    public List<SpecialCookBoyItemConfig> getItemConfigList() {
        return itemConfigList;
    }

    public void setItemConfigList(List<SpecialCookBoyItemConfig> itemConfigList) {
        this.itemConfigList = itemConfigList;
    }

    public List<SpecialCookBoyEventConfig> getEventConfigList() {
        return eventConfigList;
    }

    public void setEventConfigList(List<SpecialCookBoyEventConfig> eventConfigList) {
        this.eventConfigList = eventConfigList;
    }

    public Map<Integer, SpecialCookBoyPromptConfig> getPromptConfigMap() {
        return promptConfigMap;
    }

    public void setPromptConfigMap(Map<Integer, SpecialCookBoyPromptConfig> promptConfigMap) {
        this.promptConfigMap = promptConfigMap;
    }

    public Map<Integer, SpecialCookBoyChoosePassRoadEventConfig> getPassRoadEventConfigMap() {
        return passRoadEventConfigMap;
    }

    public List<SpecialCookBoyTipConfig> getTipDetailConfigList() {
        return tipDetailConfigList;
    }

    public List<SpecialCookBoyGuideConfig> getGuideConfigList() {
        return guideConfigList;
    }

    public String getMailContain() {
        return mailContain;
    }

    public String getMailTitle() {
        return mailTitle;
    }

    public int getTipItemId() {
        return tipItemId;
    }
}
